import { Text, View } from "react-native";
import { useNavigation } from "@react-navigation/native";
import { HomeNavigationProp } from "../../types/routes";
import { Button } from "@react-navigation/elements";
import React from "react";

export default function ProfilePage() {
  const navigation = useNavigation<HomeNavigationProp>();

  return (
    <View>
      <Text>ProfilePage</Text>
      <Button onPress={() => navigation.navigate('/orders', { orderId: 100000 })}>To order</Button>
      <Button onPress={() => navigation.navigate('/home/view')}>To view</Button>
    </View>
  );
}
